<?php
$db['master'] = [
    'dbms' => 'mysql',
    'type' => Swoole\Database::TYPE_MYSQLi,
    'engine' => 'MyISAM',
    'charset' => "utf8",
    // 'host' => getenv('DB_HOST'),
    'host' => '123.207.1.188',
    // 'port' => getenv('DB_PORT'),
    'port' => 3306,
    // 'user' => getenv('DB_USERNAME'),
    'user' => 'root',
    // 'passwd' => getenv('DB_PASSWORD'),
    'passwd' => 'AYing_Root_MySql_2017',
    // 'name' => getenv('DB_DATABASE'),
    'name' => 'swoole_framework_webim',
    'setname' => true,
    'persistent' => false, // 长连接
];
return $db;